package com.hbx.mapper;

import com.hbx.model.Rank;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hbx
 * @since 2022-01-15
 */
@Mapper
public interface RankMapper extends BaseMapper<Rank> {
    /**
     * 根据用户名与user_rank表联查用户的头衔
     * @param userId
     * @return
     */
    List<Rank> selectListByUserId(@Param("userId") Integer userId);
}
